# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo10
# Description:
# Author:       98745
# Date:         2019/3/3
#-------------------------------------------------------------------------------

d={'name':'pan','age':21}
try:
    d['Age']
except KeyError as e:
    print('异常信息：{}'.format(e))

class W:
    def t(self):
        print('t')
w=W()
try:
    w.T()
except AttributeError as e:
    print('异常信息：{}'.format(e))
